import Mock from 'mockjs'
var Random = Mock.Random
//Random.id();
//Random.data();
Mock.setup({
	timeout:'500-1000'
})
export var test = Mock.mock('http://test.cn/waitport', {
	'array|15':[{
		'name|+1': ['@name'],
		'number|123450-999999': 1,
		'disease|1':[
			'尿毒症',
			'糖尿病',
			'发烧'
		],
		'blood|1':[
			'A',
			'B',
			'AB',
			'O'
		],
		'noProject|1-3':1,
		'phone|123456789101-99999999999':1,
		'PRA|1':[
			'正常',
			'不正常'
		],
		'sex|1':['男','女'],
		'age|1-100':1,
		'height|160-190':1,
		'weight|40-100':1,
		'IdCard':'@id',
		'address':'@county(true)',
		'redabnormal|0-1':{
			'abnormal|1-4':[{
				'key':'@csentence(3, 8)',
				'val|1-2':[{
					'key':'@csentence(3, 8)',
					'value|0.1':1
				}]
			}]
				
		}
	}]
})
export var test1 = Mock.mock('http://test.cn/waitport/search?value=4321',{
	'array|10':[{
		'name|+1': ['@name'],
		'number':4321,
		'disease|1':[
			'尿毒症',
			'糖尿病',
			'发烧'
		],
		'blood|1':[
			'A',
			'B',
			'AB',
			'O'
		],
		'noProject|1-3':1,
		'phone|123456789101-99999999999':1,
		'PRA|1':[
			'正常',
			'不正常'
		]

	}]
});
export const test2 = Mock.mock('http://test.cn/waitport/addpatient/search?value=zhangsan',{
	'array|2':[{
		'name':'zhangsan',
		'sex|1':['男','女'],
		'departments':'肾移植中心',
		'age|10-45':1,
		'doctorNumber|10000000-99999999':1,
		'patNumber|10000000-99999999':1,
		'IdCard':'@id',
		'diagnosis':'慢性肾病5期',
		'disease|1':[
			'尿毒症',
			'糖尿病',
			'发烧'
		],
		'replace':'血液透析(HD)',
		'past|1':[
			'有',
			'无'
		],
		'phoneOne|123456789101-99999999999':1,
		'phoneTwo|123456789101-99999999999':1,
		'data':'@date',
		'added':'@boolean()'
	}]
})

